var assert = require('assert');
var should = require('should');
var _ = require('lodash');
var sevenDayActivityModel = require('../../app/models/sevenDayActivityModel.js');
var config = require('../config');

suite('sevenDayActivityModel', function () {
    var seven_day_model;
    setup(function (done) {
        sevenDayActivityModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            seven_day_model = model;
            model.toJSON();
            model.save(done);
        });
    });

    suite('sevenDayActivity', function () {
        test('开服7天', function (done) {
            seven_day_model.isHaveTask(1);
            done();
        });
    });
});
